package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.RoleDO;
import com.example.vo.role.RoleRespVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 23591
 * @description 针对表【sys_role(角色表)】的数据库操作Mapper
 * @createDate 2024-11-29 14:11:21
 * @Entity com.example.entity.RoleDo
 */
public interface RoleMapper extends BaseMapper<RoleDO> {

    List<RoleRespVO> selectRoleByUserId(Long userId);

    boolean insertUserRoleRel(@Param("userId") Long userId, @Param("roleId") Long roleId);

    RoleDO getRoleByUserId(Long userId);
}




